package org.example.myleet.p862;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.shortestSubarray(new int[]{-28,81,-20,28,-29}, 89));
        Assert.isTrue(2 == solution.shortestSubarray(new int[]{-34,37,51,3,-12,-50,51,100,-47,99,34,14,-13,89,31,-14,-44,23,-38,6}, 151));
        Assert.isTrue(2 == solution.shortestSubarray(new int[]{48,99,37,4,-31}, 140));
        Assert.isTrue(2 == solution.shortestSubarray(new int[]{2,-1,2,-1,-1,-1,-1,2,4}, 5));
        Assert.isTrue(1 == solution.shortestSubarray(new int[]{1}, 1));
        Assert.isTrue(-1 == solution.shortestSubarray(new int[]{1,2}, 4));
        Assert.isTrue(3 == solution.shortestSubarray(new int[]{2,-1,2}, 3));
    }
}
